package com.mybatis.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mybatis.generator.mapper.AdminMapper;
import com.mybatis.generator.model.Admin;
import com.mybatis.generator.service.AdminService;

@Service("adminService")
@Transactional
public class AdminServiceImpl implements AdminService {

	@Autowired
	private AdminMapper adminMapper;
	
	public Admin findAdmin(Integer id) {
		return adminMapper.selectByPrimaryKey(id);
	}

}
